package cn.iocoder.yudao.module.scrm.controller.admin.customizeproperty.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 自定义字段新增/修改 Request VO")
@Data
public class CustomizePropertySaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10143")
    private Long id;

    @Schema(description = "CrmBizTypeEnum", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "CrmBizTypeEnum不能为空")
    private Integer type;

    @Schema(description = "标签名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标签名称不能为空")
    private String label;

    @Schema(description = "属性名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "属性名称不能为空")
    private String prop;

}